home *** CD-ROM | disk | FTP | other *** search
File List | 1990-10-10 | 1.1 KB | 29 lines |
- ' Include your DEGAS uncompressed picture INSIDE
- ' your GFA 3.0 source code, and make the user's life
- ' easier!
- '
- INLINE pic_add%,32066
- ' Place the cursor on the INLINE line above, then hit
- ' the [HELP] key. You will get a little menu on the
- ' top of the screen. Press [L] for Load, then use
- ' the file selector to choose your DEGAS picture.
- ' The pic is imbedded into your code. pic_add% will now
- ' hold the start address of the picture. (32066 is the
- ' length of a DEGAS file.) You can have as many pics as
- ' you want, each in it's own INLINE statement, with different
- ' start-address variable names. Pass the start address to
- ' the procedure below to view the picture.
- '
- ' An example:
- deg_view(pic_add%) ! pic_add% is the start address of the pic stored
- ' in the INLINE statement above.
- END
- '
- PROCEDURE deg_view(add%) ! Shows a DEGAS picture stored at add%
- FOR j%=0 TO 15 ! Set up the color
- shade%=INT{add%+(j%*2+2)}
- ~XBIOS(7,j%,shade%)
- NEXT j%
- BMOVE add%+34,XBIOS(2),32000 ! Move the pic to screen memory
- RETURN
-